// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
   const _id = event._id
   try {
      const result = await cloud.openapi.wxacode.get({
         //  path: 'page/index/index?queue_id=' + _id ,
         path: "pages/index/index?queue_id=" + _id,
         width: 430
        })
      console.log(result)
      return result
   } catch (err) {
      console.log(err)
      return err
   }
}